#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int n;


int main() {
	cin >> n;
	int res = 0;
	for (int i = 0; i < n; ++i) {
		int x;
		cin >> x;
		res ^= x;
	}
	if (res) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
	return 0;
}